﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="signinTitle" ContentPlaceHolderID="TitleContent" runat="server">
  Log On
</asp:Content>
<asp:Content ID="signinContent" ContentPlaceHolderID="MainContent" runat="server">
  <h2>
    Presenter Sign In
  </h2>
  <h3>
    To propose a session, you must first be signed in as a presenter.
  </h3>
  <h3>
    If you don't have one, you can
    <%= Html.ActionLink("create a presenter account", "Create") %> now.
  </h3>
  <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
  <% using ( Html.BeginForm() )
     { %>
      <div>
        <fieldset>
          <legend>Account Information</legend>
          <div>
            <label for="username">
              Username:</label>
            <%= Html.TextBox("username") %>
            <%= Html.ValidationMessage("username") %>
          </div>
          <div>
            <label for="password">
              Password:</label>
            <%= Html.Password("password") %>
            <%= Html.ValidationMessage("password") %>
          </div>
          <div>
            <%= Html.CheckBox("rememberMe") %>
            <label class="inline" for="rememberMe">
              Remember me:</label>
          </div>
          <div>
            <input type="submit" value="Sign in" />
          </div>
        </fieldset>
      </div>
  <% } %>

  <p>Forgot your password? <a href="<%= Url.Action("PasswordReset") %>">Click here</a> to have a new one sent to you.</p>

</asp:Content>
